package com.atguigu.springcloud.service;


import com.atguigu.springcloud.config.MultipartSupportConfig;
import com.atguigu.springcloud.entities.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;


@FeignClient(value = "seata-account-service",configuration = MultipartSupportConfig.class)
public interface AccountService {
    @PostMapping(value="/account/decrease")
    CommonResult decrease(@RequestParam("userId") Long productId, @RequestParam("money") BigDecimal count);
}
